/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package exercises.day01.pt2;

import java.util.Scanner;

/**
 * MyFirstJava
 *
 * @author (jaice)
 * @version 0.1 (may 28, 2012)
 * 
 *a. Create a Java application which displays the multiplication table of any given 
 *number.  Use the Scanner class to accept the number.
 *
 * 
 */
public class MultiplicationTable {

    public static void main(String args[]) {
        //declare variable
        int input = 0;

        //declare scanner
        Scanner sc = new Scanner(System.in);

        //print input number for multiplication table
        System.out.println("Input number for multiplication table ");
        //get input 
        input = sc.nextInt();

        System.out.println("\n\n");


        for (int i = 1; i <= 10; i++) {

            //     for (int j = 1; j <= 10; j++) {
            System.out.print(i+" X "+input +" = "+ i * input + "\t");

            // }
            //for next row
            System.out.println();
        }

    }
}
